package com.ton.system.entity;

import com.ton.system.service.AdminPermissionService;
import com.hai.admin.table.EditColumn;
import com.hai.admin.table.EditTable;
import com.hai.admin.table.QueryField;
import com.kypj.frame.db.annotation.MyColumnNot;
import com.kypj.frame.db.annotation.MyPk;
import lombok.Data;


@Data
@EditTable(name = "权限配置表", usePager = true,
        addable = true, deletable = true, editable = true, editPermission = "permission:edit",
        dataService = AdminPermissionService.class)
//  admin_permission
public class AdminPermission {
    @MyPk
    @EditColumn(label = "ID", width = 100)
    private Integer id;  // id int(11)
    @EditColumn(label = "权限名称", editable = true, width = 200)
    private String permName;  // perm_name varchar(20)   权限名称
    @EditColumn(label = "权限内容名称", editable = true, comment = "权限，多个逗号分隔")
    private String permission;  // permission varchar(200)   权限，多个逗号,分隔
    @EditColumn(label = "URI路径", editable = true, noneAble = true, comment = "uri访问路径，多个逗号分隔，可不填")
    private String uri;  // uri varchar(100)   uri访问路径，多个逗号分隔，可不填
    @EditColumn(label = "上级权限ID", editable = true, noneAble = true, width = 100, comment = "上级权限ID")
    private Integer parentId;//comment '父菜单Id';
    @EditColumn(label = "外部链接", editable = true, noneAble = true, comment = "外部链接")
    private String src;//src '外部链接';
    @EditColumn(label = "内部链接", editable = true, noneAble = true, comment = "内部链接")
    private String insideSrc;//insideSrc '内部链接';
    @QueryField(label = "搜索")
    @MyColumnNot
    private String keyword;
}
